function rot13(str,shift) { //字符串，偏移的位数  
	var str1 = [];
	for(var i = 0; i < str.length; i++) {
		var num = str[i].charCodeAt();
		num = num + shift;
		str1.push(String.fromCharCode(num));
	}
	return str1.join("");
}